'use strict';
var Schema = require('mongoose').Schema,
    CommonEnum = require('../controllers/Enum.js'),
    Model = require('../../../Base/server/controllers/Model');

var modelField = {
    ScheduleRequest: {
        type: String,
        Name: '调度请求',
        IsEmpty: false
    },
    IsSuccess: {
        type: Boolean,
        Name: '成功'
    },
    Exception: {
        type: String,
        Name: '异常信息',
        trim: true
    },
    StartTime: {
        type: Date,
        Name: '开始执行时间'
    },
    EndTime: {
        type: Date,
        Name: '执行结束时间'
    }
};

var newModel = new Model(modelField);
newModel.create('ScheduleMonitor', '调度监控');